package com.newsproject.pojo.DTO;

import Util.PageInfo;
import lombok.Data;

import java.util.List;

//用于封装用户列表的响应数据
@Data
public class UserListResponseDTO {
    private List<UserDTO> users;
    private PageInfo pageInfo;
    private int totalPages;

    public UserListResponseDTO(List<UserDTO> users, PageInfo pageInfo, int totalPages) {
        this.users = users;
        this.pageInfo = pageInfo;
        this.totalPages = totalPages;
    }


}
